package BaseLearn.designPatterns.builder.Test1;

public class Main {
    public static void main(String[] args) {
        TextBuilder textbuilder = new TextBuilder();
        Director director = new Director(textbuilder);
        director.construct();
        String result = textbuilder.getResult();
        System.out.println(result);

        HTMLBuilder htmlbuilder = new HTMLBuilder();
        Director director2 = new Director(htmlbuilder);
        director2.construct();
        String filename = htmlbuilder.getResult();
        System.out.println(filename + "finished.");

    }
}
